package ModelLayer;

/**
 * Class for objects of PartList
 * 
 * @author (AF, RA, KP, RL) 
 * @version (2012.06.05)
 */
public class Partlist
{
    private int quanitity;
    private Product product;

    /**
     * Constructor for objects of class PartList
     * 
     * @param product product of PartList as Product
     * @param quanitity quanitity of Product as int
     * 
     * @return none
     */
    public Partlist(Product product, int quanitity)
    {
        this.quanitity = quanitity;
        this.product = product;
    }

    /**
     * finds quantity of product
     * 
     * @param none
     * 
     * @return quanitity as int
     */
    public int getQuanitity()
    {
        return quanitity;
    }
    
    /**
     * finds product of PartList
     * 
     * @param none
     * 
     * @return product as Product
     */
    public Product getProduct()
    {
        return product;
    }
}
